<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewContactoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewContactoLabel_idContacto}"/>
                    <h:outputText value="#{contactoController.selected.idContacto}" title="#{bundle.ViewContactoTitle_idContacto}"/>
                    <h:outputText value="#{bundle.ViewContactoLabel_nome}"/>
                    <h:outputText value="#{contactoController.selected.nome}" title="#{bundle.ViewContactoTitle_nome}"/>
                    <h:outputText value="#{bundle.ViewContactoLabel_detalhe}"/>
                    <h:outputText value="#{contactoController.selected.detalhe}" title="#{bundle.ViewContactoTitle_detalhe}"/>
                    <h:outputText value="#{bundle.ViewContactoLabel_telef}"/>
                    <h:outputText value="#{contactoController.selected.telef}" title="#{bundle.ViewContactoTitle_telef}"/>
                    <h:outputText value="#{bundle.ViewContactoLabel_email}"/>
                    <h:outputText value="#{contactoController.selected.email}" title="#{bundle.ViewContactoTitle_email}"/>
                    <h:outputText value="#{bundle.ViewContactoLabel_fkFuncionario}"/>
                    <h:outputText value="#{contactoController.selected.fkFuncionario}" title="#{bundle.ViewContactoTitle_fkFuncionario}"/>
                    <h:outputText value="#{bundle.ViewContactoLabel_fkCliente}"/>
                    <h:outputText value="#{contactoController.selected.fkCliente}" title="#{bundle.ViewContactoTitle_fkCliente}"/>
                    <h:outputText value="#{bundle.ViewContactoLabel_fkParceiro}"/>
                    <h:outputText value="#{contactoController.selected.fkParceiro}" title="#{bundle.ViewContactoTitle_fkParceiro}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{contactoController.destroyAndView}" value="#{bundle.ViewContactoDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewContactoEditLink}"/>
                <br />
                <h:commandLink action="#{contactoController.prepareCreate}" value="#{bundle.ViewContactoCreateLink}" />
                <br />
                <h:commandLink action="#{contactoController.prepareList}" value="#{bundle.ViewContactoShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewContactoIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
